package com.rightsidetech.mall.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class VerifyCommodityReq implements Serializable {

    @ApiModelProperty(value = "商品id",required = true)
    @NotNull(message = "商品id不可为空")
    @Min(value = 0,message = "商品id不可为负数")
    private Long id;

    @ApiModelProperty(value = "审核状态 0-通过 1-驳回",required = true)
    @NotNull(message = "审核状态不可为空")
    @Range(min = 0,max = 1,message = "审核只有通过或驳回两种状态")
    private Byte status;

    @ApiModelProperty("审核或驳回原因")
    @Length(max = 200,message = "审核或驳回原因不可超过200个字符")
    private String auditContent;

}
